package com.octopus.kernal.util.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="ManyToOne")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class ManyToOne {
	
	@XmlAttribute
	private String fetch = "eager";
	
	@XmlAttribute
	private String cascade = "refresh";
	
	@XmlAttribute
	private Boolean optional = true;
	
	@XmlAttribute
	private String joinColumn;
	
	@XmlAttribute
	private String referencedColumn = "id";

	public String getFetch() {
		return fetch;
	}

	public void setFetch(String fetch) {
		this.fetch = fetch;
	}

	public String getCascade() {
		return cascade;
	}

	public void setCascade(String cascade) {
		this.cascade = cascade;
	}

	public Boolean getOptional() {
		return optional;
	}

	public void setOptional(Boolean optional) {
		this.optional = optional;
	}

	public String getJoinColumn() {
		return joinColumn;
	}

	public void setJoinColumn(String joinColumn) {
		this.joinColumn = joinColumn;
	}

	public String getReferencedColumn() {
		return referencedColumn;
	}

	public void setReferencedColumn(String referencedColumn) {
		this.referencedColumn = referencedColumn;
	}

}
